import { reactive, ref } from 'vue'
export default function pagePart() {
  const pullup = ref(true)
  const pagePart = reactive({
    page: 1,
    limit: 5
  })
  const resetPage = () => {
    pagePart.page = 1
    pagePart.limit = 5
    pullup.value = true
  }
  const cbAfterAjax = (length: number, total: number) => {
    if (length == total) {
      pullup.value = false
    }
  }
  return [pullup, pagePart, resetPage, cbAfterAjax]
}
